package cn.itcast.day04.demo01;

import java.util.Scanner;

public class Demo03ScannerMax {
    public static void main(String[] args) {
        System.out.println("请输入3个数字，求最大值");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int max;
        max = a > b ? a : b;
        max = max > c ? max : c;
        System.out.println("最大值为:" + max);
    }
}
